#ifndef TEXT_CARD_WIDGET_H
#define TEXT_CARD_WIDGET_H

#include <QWidget>

namespace Ui {
class TextCardWidget;
}

class TextCardWidget : public QWidget
{
    Q_OBJECT

public:
    explicit TextCardWidget(QWidget *parent = nullptr);
    ~TextCardWidget();
    void setTitle(const QString& title);
    void setText(const QString& text);

    QString getText();

private:
    void initUi();
    void initEvents();
    void initTextEditStyle();

signals:
    void saveBtnClicked();

private:
    Ui::TextCardWidget *ui;
    QString             m_oldText;
};

#endif // TEXT_CARD_WIDGET_H
